package com.im.event;

import com.core.sdk.core.BaseEvent;
import com.core.sdk.core.Location;

public class UserRequestEvent extends BaseEvent {

	private static final long serialVersionUID = 1L;

	public static enum OPERATE{
		request_login,request_logout,request_reg,request_user_list,none
	}
	private OPERATE op = OPERATE.none;
	private String userId;
	private String password;
	/** 别名 */
	private String name;
	private String email;

	public UserRequestEvent(Location to,OPERATE op,String userId, String password) {
		super(to);
		this.op = op;
		this.userId = userId;
		this.password = password;
	}

	public UserRequestEvent(Location to, OPERATE op) {
		super(to);
		this.op = op;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public OPERATE getOp() {
		return op;
	}
	
}
